package org.programmers.anonymous.fightrobots.dao;

import java.util.List;

import org.programmers.anonymous.fightrobots.model.IRobot;

/**
 * robotDao Interface
 * 
 * @author Daniel Cruz, Francisco Villalba
 *
 */
public interface IRobotDao
{
	
	/**
	 * Stores the robot on the DB.
	 * @param r - The robot
	 * @return - The stored robot id
	 */
	public int save(IRobot r);
	
	/**
	 * Loads a robot from the DB
	 * @param Id
	 * @return
	 */
	public IRobot loadRobot(int Id);
	
	/**
	 * Deletes a robot stored on the DB
	 * @param r - The robot to delete
	 */
	public void delete(IRobot r);
	
	/**
	 * Returns the list of stored robots
	 * @return
	 */
	public List<IRobot> getRobotList();
	
	/**
	 * 
	 */
	public void deleteAllRobots();



}
